<%-- 
    Document   : postOK
    Created on : 26/07/2010, 3:54:01 PM
    Author     : gongz
--%>

<%@page import="au.edu.unsw.bookmarket.actionform.BookBean"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="windows-1252"%>

<%@include file="taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<c:choose>
    <c:when test="${not empty books}">
        not empty
        <logic:iterate id="book" name="books" type="au.edu.unsw.bookmarket.actionform.BookBean">
            Book Name: <bean:write name="book" property="name"/>
            <br/>
            Book Author: <bean:write name="book" property="author"/>
            <br/>
        </logic:iterate>
    </c:when>
    <c:otherwise>
        empty
    </c:otherwise>
</c:choose>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>JSP OK Page</title>
    </head>
    <body>
        <c:choose>
            <c:when test="${not empty books}">
                not empty
                <logic:iterate id="book" name="books" type="au.edu.unsw.bookmarket.actionform.BookBean">
                    Book Name: <bean:write name="book" property="name"/>
                    <br/>
                    Book Author: <bean:write name="book" property="author"/>
                    <br/>
                </logic:iterate>
            </c:when>
            <c:otherwise>
                empty
            </c:otherwise>
        </c:choose>
        <h1>Hello World!</h1>
        <logic:iterate id="book" name="books" type="au.edu.unsw.bookmarket.actionform.BookBean">
            Book Name: <bean:write name="book" property="name"/>
            <br/>
            Book Author: <bean:write name="book" property="author"/>
            <br/>
        </logic:iterate>
    </body>
</html>
